From: Eli Zaretskii Date: Mon, 14 May 2001 17:47:55 +0000 (+0000) Subject: (elp-instrument-package): Don't allow empty prefixes. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~40308 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=f16c117dbe33eafd91fc61664cd50c5cb43f9003;p=emacs.git (elp-instrument-package): Don't allow empty prefixes. --- diff --git a/lisp/emacs-lisp/elp.el b/lisp/emacs-lisp/elp.el index 42dc1bc070b..af189126a09 100644 --- a/lisp/emacs-lisp/elp.el +++ b/lisp/emacs-lisp/elp.el @@ -323,6 +323,8 @@ For example, to instrument all ELP functions, do the following: \\[elp-instrument-package] RET elp- RET" (interactive "sPrefix of package to instrument: ") + (if (zerop (length prefix)) + (error "Instrumenting all Emacs functions would render Emacs unusable.")) (elp-instrument-list (mapcar 'intern